package ignite.service;

import org.ignite.entity.Person;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;

import javax.cache.Cache;
import java.util.List;

public interface PersonService {

    List<Cache.Entry<Integer, Person>> findByFirstName(String name);

    List<Integer> selectId(Integer Id, Pageable pageable);

    List<Cache.Entry<Integer, Person>> selectAll(Pageable pageable);

    Integer getMaxId();

    List<Cache.Entry<Integer, Person>> findByManyParams(Integer Id,String firstName);

    void updateById(Integer Id, String firstName);

    void deleteById(Integer Id);

    Person selectPersonById(Integer id);

    Person save(Person person);
}